package easy;

public class test4 {
    // https://leetcode.cn/problems/group-anagrams/submissions/681147248/
    /*
    public List<List<String>> groupAnagrams(String[] strs) {
        HashMap<String,List<String>> map=new HashMap<>();
        List<List<String>> ret=new ArrayList<>();
        for(int i=0;i<strs.length;i++) {
            String str=strs[i];
            char[] chars=str.toCharArray();
            Arrays.sort(chars);
            String tmp=new String(chars);
            if(map.containsKey(tmp)) map.get(tmp).add(str);
            else {
                List<String> list=new ArrayList<>();
                ret.add(list);
                list.add(str);
                map.put(tmp,list);
            }
        }
        return ret;
    }
     */
}
